home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
music4c.sit
/
Music4C Folder
/
Sources Folder
/
Pstring.c
< prev
next >
Wrap
Text File
|
1990-06-08
|
567b
|
32 lines
/*
* ⌐ Graeme Gerrard 1990
* Faculty of Music, University of Melbourne
* Parkville Victoria 3052 Australia.
*
* ARPANET: grae@murdu.ucs.unimelb.edu.au
* telephone: (613) 344 4127, Fax: (613) 344 5346
*/
#include "Music4C_Prototype.h"
void PstringCopy(to, from)
char *to, *from;
{
char *end = from + *from + 1;
for ( *to++ = *from++; from < end; )
*to++ = *from++;
}
void PstringCat(to, from)
char *to, *from;
{
register int i, length;
char *p;
length = *from;
p = to + *to + 1;
from++;
for ( i = 0; i < length; i++) *p++ = *from++;
*to += length;
}